﻿@using WebApplication1.Controllers
@model IEnumerable<Student>

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>List</title>
</head>
<body>
    <div>
        <ul>
            @foreach(Student student in (ViewBag.List as IEnumerable<Student>))
            {
                <li>@student.Name</li>
            }
        </ul>
    </div>
</body>
</html>
